package com.jian.controller;

import com.jian.common.BaseResponse;
import com.jian.common.ErrorCode;
import com.jian.common.ResultUtils;
import com.jian.service.EntrustService;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/receives")
public class ReceiveController {

    @Autowired
    private EntrustService entrustService;

    @PostMapping ()
    public BaseResponse test01(@RequestBody int id)
    {
        long ans = entrustService.getMoney(id);
        return ResultUtils.Success(ans);
    }

}
